<%@ page language="java" contentType="text/html; charset=UTF-8"
	pageEncoding="UTF-8"%>
<%@ taglib uri="http://java.sun.com/jsp/jstl/core" prefix="c"%>
<%@ include file="/pages/common/taglibs.jsp"%>
<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
<title>产品管理页面</title>
</head>
<body>
<div id="mainDiv" class="x-panel">
<div id="titleDiv" class="x-panel-header">产品管理</div>
<div id="bodyDiv">
<div id="toolbarDiv" class="x-toolbar"><!-- 此处是工具栏    注3--></div>
<div id="toolbarDiv" class="x-toolbar"><INPUT
	onclick="window.location='${ctx}/proInfo.do?method=beforeAddProInfo'"
	name="delete" value="添加产品" type="button"></div>
<div id="panelBodyDiv" class="x-panel-body"><!-- 此处是主体部分    注4-->
<TABLE width="90%" border="1" class="datatable" id="tables4">
	<TBODY>
		<TR align="center">
			<TH width="160" noWrap>产品型号</TH>
			<TH width="200" noWrap>产品名称</TH>
			<TH width="160" noWrap>产品类型</TH>
			<TH width="100" noWrap>是否推荐</TH>
			<TH width="100" noWrap>操作</TH>
		</TR>
		<c:if test="${empty(list)}">
			<tr align="center">
				<td colspan="5">没有数据</td>
			</tr>
		</c:if>
		<c:forEach var="product" items="${list}">
			<tr align="center">
				<td>${product.proModel}</td>
				<td>${product.proName}</td>
				<td>${product.proClass.className}</td>
				<c:if test="${product.commendFlag eq 0}">
					<td><font color="green">否</font></td>
				</c:if>
				<c:if test="${product.commendFlag eq 1}">
					<td><font color="green">是</font></td>
				</c:if>
				<td><IMG style="cursor: hand;"
					onclick="window.location.href='${ctx}/proInfo.do?method=beforeUpdatePro&id=${product.pId}'"
					src="${ctx}/images/icons/modify.gif" title="修改">&nbsp;&nbsp;&nbsp;
				<IMG style="cursor: hand;" 
				onclick="window.location.href='${ctx}/proInfo.do?method=delProduct&id=${product.pId}'"
					src="${ctx}/images/icons/delete.gif" title="删除"></td>
			<TR>
		</c:forEach>
	</TBODY>
</TABLE>
</div>
</div>
</div>
</body>
</html>